home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_bas
/
pbc32.zip
/
PBC$BAS.ZIP
/
NAMECAS2.BAS
< prev
next >
Wrap
BASIC Source File
|
1996-04-10
|
959b
|
29 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone (C) Copyright 1996 Charon Software, All Rights Reserved |
' | |
' +----------------------------------------------------------------------+
DECLARE SUB NameCase00 (St$)
SUB NameCase (St$)
NameCase00 St$
IF RIGHT$(St$, 3) = " Ii" OR RIGHT$(St$, 4) = " Iii" OR RIGHT$(St$, 3) = " Iv" THEN
place% = INSTR(St$, " ")
place% = INSTR(place% + 1, St$, " ")
IF place% THEN
tmp% = LEN(St$)
DO
MID$(St$, tmp%, 1) = UCASE$(MID$(St$, tmp%, 1))
tmp% = tmp% - 1
LOOP UNTIL MID$(St$, tmp%, 1) = " "
END IF
END IF
END SUB
FUNCTION NameCase2$ (St$)
tmp$ = St$
NameCase tmp$
NameCase2$ = tmp$
END FUNCTION